// console.log({} instanceof Object);  //true
// console.log([] instanceof Array);  //true
// console.log(new Date() instanceof Date);  //true
// console.log(function () { } instanceof Function);  //true
// console.log([] instanceof Object);




// console.log('hello' instanceof String);  //false
// console.log(123 instanceof Number);  //false
// console.log(true instanceof Boolean);  //false
// console.log(null instanceof null);  //false






function Car() {
    this.run = 'running'
}
Bus.prototype = new Car()
function Bus() {
    this.name = 'BYD'
}

let bus = new Bus()
console.log(bus instanceof Car);

// bus.name




// console.log(bus instanceof Object);
// bus.__proto__.__proto__.__proto__ === Object.prototype


// console.log(bus instanceof Car);
// bus.__proto__.__proto__ === Car.prototype


// console.log(bus instanceof Bus);
// bus.__proto__ === Bus.prototype


// function Bus() { }
// let bus = new Bus()
// console.log(bus instanceof Bus);
